﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WomanMotion.WebApi.Model.Dtos.Classify
{
    /// <summary>
    /// 分类更新DTO
    /// </summary>
    public class UpdateClassifyDTO : BaseUpdateDTO
    {
        /// <summary>
        /// 上级分类ID
        /// </summary>
        public long Parentid { get; set; }

        /// <summary>
        /// 默认观看平台ID
        /// </summary>
        public long Watchid { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        [Required(ErrorMessage = "分类名称不能为空")]
        [MaxLength(20, ErrorMessage = "分类名称不能大于20个字符")]
        [MinLength(2, ErrorMessage = "分类名称不能小于2个字符")]
        public string? Name { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        [Required(ErrorMessage = "分类级别不能为空")]
        public int? Layer { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}